'use strict';
const winston = require('winston');

// prettier-ignore
const log = winston.createLogger({
  level: 'debug',
  format: winston.format.combine(
    winston.format.timestamp(),
    winston.format.json()
  ),
  transports: [
    new winston.transports.File({
      filename: 'd-fi.log',
      level: 'debug',
      options: { flags: 'w' }
    }),
  ]
});

module.exports = log;
